package rowan.application.quickaccess.rss.parser;

import java.util.ArrayList;

/**
 * This is a class holding data obtained from parsing an xml document (rss feed)
 *  
 *  ArrayLists of Titles,
 *  				Descriptions, and links to fill article
 *
 */
public class ParsedDataSet {
	 private ArrayList<String> titles = new ArrayList<String>();
	 private ArrayList<String> links = new ArrayList<String>();
	 private ArrayList<String> descs = new ArrayList<String>();
     private ArrayList<String> imgs = new ArrayList<String>();
     private ArrayList<byte[]> images = new ArrayList<byte[]>();
     private int newItems = 0;
     
     public int getNumOfNewItems()
     {
    	 return newItems;
     }
     
     public void setNumOfNewItems(int items)
     {
    	 newItems = items;
     }
     
     public String toString(){ 
    	 String toString = "";
    	 toString = descs.get(0) + "   " + descs.get(1) + "    " + descs.get(2) + "    " +descs.get(3);
    	 return toString;
     }
	public void addTitle(String title) {
		titles.add(title);
	}
	public ArrayList<String> getTitles() {
		return titles;
	}
	public void addLink(String link) {
		links.add(link);
	}
	public ArrayList<String> getLinks() {
		return links;
	}
	public void addDesc(String desc) {
		descs.add(desc);
	}
	public ArrayList<String> getDescs() {
		return descs;
	} 
	
	public void addImgUrl(String imgUrl)
	{
		imgs.add(imgUrl);
	}
	
	public ArrayList<String> getImgUrls()
	{
		return imgs;
	}
	public void addImg(byte[] image) {
		images.add(image);
	}
	
	public ArrayList<byte[]> getImgs()
	{
		return images;
	}
	
}